from django.db import models
from django.contrib.auth.models import User, AbstractUser

# Create your models here.


class Admin(models.Model):
    # 用户名
    username = models.CharField(max_length=12, unique=True)
    # 密码
    password = models.CharField(max_length=22)
    position = models.CharField(max_length=12, default='admin')
    adminManage = models.BooleanField(default=False)
    userManage = models.BooleanField(default=True)
    vipManage = models.BooleanField(default=True)
    bookManage = models.BooleanField(default=True)
    commentManage = models.BooleanField(default=True)
    swiperManage = models.BooleanField(default=True)
